import { NgModule, Optional, SkipSelf } from '@angular/core';
import { throwIfAlreadyLoaded } from './module-import-guard';
import { AlainThemeModule } from '@delon/theme';

import { I18NService } from './i18n/i18n.service';

import { AbpModule, ABP_HTTP_PROVIDER } from './net/abp.module';

@NgModule({
    imports: [
       AlainThemeModule.forRoot(),
       AbpModule
       
    ],
    providers: [
      ABP_HTTP_PROVIDER,
      I18NService
    ]
})
export class CoreModule {
  constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
    throwIfAlreadyLoaded(parentModule, 'CoreModule');
  }
}
